<{include file="news_header.html"}>
<script type="text/javascript" src="<{$_TINYMCE_DIR}>tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
	// General options
	mode : "exact",
	elements : "newsContent",
	theme : "advanced",
	language : "zh",
	skin : "o2k7",
	plugins : "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

	relative_urls: false,
    remove_script_host: false,
    
	// Theme options
	theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,insertdate,inserttime,|,forecolor,backcolor",
	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,",
	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak,help,|,code,template,preview,fullscreen",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example content CSS (should be your site CSS)
	content_css : "css/content.css",

	// Drop lists for link/image/media/template dialogs
	//template_external_list_url : "lists/template_list.js",
	//external_link_list_url : "lists/link_list.js",
	//external_image_list_url : "lists/image_list.js",
	//media_external_list_url : "lists/media_list.js",

	template_templates : [
	                  	{
	                  		title : "招聘信息",
	                  		src : "templates/editor_job.html",
	                  		description : "添加招聘模板..."
	                  	}
	                  ],
	                  	
	// Replace values for the template plugin
	template_replace_values : {
		username : "LD",
		staffid : "991234"
	}
});
</script>

</header>
<body class="oneColLiqCtrHdr">
<div id="container">

  <div id="header">
<h1><{if $action eq "add"}>添加<{elseif $action eq "edit"}>编辑<{/if}> <{$module_name}> </h1>
  </div>

  <div id="mainContent">
  	<{if $error <> ''}><div id="error"><span style="color:red">Error:</span> <{$error}></div><{/if}>
  	<{if $success <> ''}><div id="success"><span style="color:blue">Success:</span><{$success}></div><{/if}>

	      <table width="600" height="500" border="0" align="center"> 
 
        <tr height="40">
	      
    <form id="form1" name="form1" method="post" action="?module=<{$module}>&action=<{if $action eq "add"}>add<{elseif $action eq "edit"}>edit&nid=<{$nid}><{/if}>">

        <tr height="40">
          <td>
          	<label>文章标题: <input type="text" name="newsTitle" id="newsTitle" class="inputBox" <{if $xTitle <> ''}>value="<{$xTitle}>"<{/if}> />
            </label>
          </td>
        </tr>
        <tr height="40">
         
         <td>
          	<label>选择分类: <select name="newsCats" id="newsCats">
	          <{html_options options=$cat_options selected=$cat_id}>
         	</select>
          </label>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <label>发布者: <select name="newsAuthor" id="newsAuthor">
           <{html_options options=$auh_options selected=$auh_id}>
              </select>
          </label>
          
          </td>
          
        </tr>
        <tr  height="40">
          <td><label>关键字:
              <input type="text" name="newsTags" id="newsTags" class="inputBox" <{if $xTag <> ''}>value="<{$xTag}>"<{/if}> />
          </label></td>
        </tr>
        <tr  height="200">
          <td>
            <label>内容：<br />
              <textarea name="newsContent" id="newsContent" cols="25" rows="15" class="tinymce"><{if $xContent <> ''}><{$xContent}><{/if}></textarea>
            </label>
        
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <input type="submit" name="newsSubmit" id="newsSubmit" value="<{if $action eq "add"}>添加<{elseif $action eq "edit"}>编辑<{/if}>文章" />
           	</label>
           	 		<label><input name="reset" type="reset" value="重置" /></label>
           	</td>
        </tr>
    </form>
    
    
      </table>

<{include file="news_footer.html"}>